package com.treasure.mall.zbqmallapi.vo;

import com.treasure.mall.biz.entity.common.CityAreaPO;
import com.treasure.mall.biz.vo.BaseVO;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/7/8
 */
@Data
@ApiModel("行政区域")
@NoArgsConstructor
public class CityAreaVO implements BaseVO {
    private static final long serialVersionUID = 6397364780464721576L;

    private Integer id;
    private String name;
    private Integer pid;
    private String zipCode;

    public CityAreaVO(CityAreaPO po) {
        this.id = po.getId();
        this.name = po.getName();
        this.pid = po.getPid();
        this.zipCode = po.getZipCode();
    }
}
